<form action="index.php?option=com_msmobj" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
	<fieldset id="filter-bar">
		<div class="filter-search fltlft" style="width: 100%;">
			<label class="filter-search-lbl" for="filter_search">フィルタ</label>
			<input type="text" name="filter_search" id="filter_search" value="<?php echo JRequest::getVar('filter_search') ?>"/>
			<button type="submit" class="btn">検索</button>
			<button type="button" onclick="document.id('filter_search').value='';this.form.submit();">クリア</button>
            <button type="submit" id="upload" name="upload" onclick="Joomla.submitbutton('upload')" style="float: right;">CSV</button>
            <input type="file" id="csv" name="csv" style="float: right;" />	
            
		</div>
		
	</fieldset>
	<div class="clr"> </div>

	<table class="adminlist">
		<thead>
			<tr>
				<th style="width: 3%;" >
                    選択
				</th>
				<th style="width: 15%;">
					ID				
                </th>
				<th>
			          対象名				
                </th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="15">
				    <?php echo $this->pagination->getListFooter(); ?>	
                </td>
			</tr>
		</tfoot>
		<tbody>
          <?php foreach($this->rows as $k=>$row):?>
                <tr class="row<?php echo $k%2?>">
                    <td class="center">
                        <input type="checkbox" id="cb<?php echo $row->MOBJ_CODE ?>" name="cid[]" value="<?php echo $row->MOBJ_CODE ?>" onclick="Joomla.isChecked(this.checked);" />
                    </td>
                    <td class="center">
                        <?php echo $row->MOBJ_CODE;?>
                    </td>
                    <td class="center">
                        <?php echo $row->MOBJ_NAME;?>
                    </td>
                </tr>
          <?php endforeach ?>
		</tbody>
	</table>
	<div>
		<input type="hidden" name="task" value="">
        <input type="hidden" name="boxchecked" value="0"/>
			
  </div>
</form>
<script>
Joomla.submitbutton = function(task){
	    if(task == 'remove'){
	       if(!confirm('選択したデータを削除します。よろしいですか？')){
	           return false;
	       }
	   }
       Joomla.submitform(task, document.getElementById('adminForm'));
 }
</script>